home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Translation Manager / Sample Code / Translation Extension Example / LowerToUpperCase.make < prev    next >
Encoding:
Text File  |  1998-06-05  |  2.5 KB  |  99 lines  |  [TEXT/MPS ]

  1. #
  2. #   LowerToUpperCase.make
  3. #
  4. #    MPW makefile for LowerToUpperCase translation extension
  5. #
  6. #    Copyright © 1994,1998 Apple Computer, Inc.  All rights reserved.
  7. #
  8. #
  9. #    Modified from LowerToUpperCaseScrap
  10. #    R.Silva 8/23/95
  11. #
  12. AppName  = LowerToUpperCase
  13. Creator = 'M&Ms'
  14. Type    = 'thng'
  15.  
  16. SymOpt = on   # Set to "on" to build a debuggable version.
  17.  
  18. Source_Folder = :
  19.  
  20. Objects = ":Interim Result:"
  21.  
  22. {Objects} ƒ {Source_Folder}
  23.  
  24. Sources = LowerToUpperCase.c
  25.           
  26. Resources = {AppName}.r ∂
  27.             thng.r ∂
  28.             MPWGetResources.r
  29.  
  30. PPC_Objects =     {Objects}{AppName}.c.ppc.o                    ∂
  31.                 {Objects}RoutineDescriptorEntry.c.ppc.o        ∂
  32.                 {Objects}TranslationComponent.c.ppc.o
  33.                 
  34. 68K_Objects =     {Objects}{AppName}.c.68k.o                    ∂
  35.                 {Objects}TranslationComponent.c.68k.o
  36.                 
  37. PPCC_Options =     -sym {SymOpt}
  38.  
  39. C_Options = -i "{PPCCIncludes}" -w 17 -sym {SymOpt}  # Use universal headers for 68K build.
  40.  
  41. R_Options = -d UseExtendedThingResource=1 -d UNDERMPW=1 -i "{CIncludes}"
  42.  
  43. PPC_Libraries =    "{SharedLibraries}"InterfaceLib        ∂
  44.                 "{SharedLibraries}"StdCLib            ∂
  45.                 "{PPCLibraries}"StdCRuntime.o        ∂
  46.                 "{PPCLibraries}"PPCCRuntime.o        ∂
  47.                 "{SharedLibraries}"TranslationLib
  48.                 
  49. 68K_Libraries = "{Libraries}"MacRuntime.o  ∂
  50.                 "{Libraries}"Interface.o
  51.  
  52. PPC_LibEquates =     -l InterfaceLib.xcoff=InterfaceLib ∂
  53.                     -l StdCLib.xcoff=StdCLib ∂
  54.                     -l MathLib.xcoff=MathLib
  55.                                         
  56. Makefile =        {AppName}.make
  57.  
  58. C =                SC
  59.  
  60. PEF_Options = -b -x
  61.  
  62. PPCC =             MrC
  63.  
  64. {AppName} ƒ {Objects}{AppName}.pef {Objects}{AppName}68KMPW.rsrc
  65.     Rez {Resources} -a -i {Objects} -o {AppName} {R_Options}
  66.     SetFile {AppName} -a Bi -t thng -c M&Ms 
  67.  
  68. {Objects}{AppName}.pef ƒƒ {Objects}{AppName}.xcoff {Resources}
  69.     makepef  {PEF_Options}                         ∂
  70.              {Objects}{AppName}.xcoff             ∂
  71.              {PPC_LibEquates}                     ∂
  72.              -o {Targ}                    
  73.             
  74. {Objects}{AppName}.xcoff ƒƒ {PPC_Objects}
  75.         PPCLink                                                   ∂
  76.         {PPC_Objects}                                            ∂
  77.         {PPC_Libraries}                                             ∂
  78.         -sym {SymOpt} -w                                         ∂
  79.         -outputFormat  xcoff                                     ∂
  80.         -main MainRD                                             ∂
  81.         -o {Targ}
  82.  
  83. {Objects}{AppName}68KMPW.rsrc ƒƒ {68K_Objects} {Resources}
  84.     Link -d -t rsrc -c RSED                         ∂
  85.         {68K_Objects}                                 ∂
  86.         {68K_Libraries}                                ∂
  87.         -sym {SymOpt}                                ∂
  88.         -m MAIN                                        ∂
  89.         -sg "68K Code Resource" -t rsrc -c RSED        ∂
  90.         -rt xlat=128                                ∂
  91.         -o {Targ}
  92.  
  93. .c.ppc.o    ƒ    .c {Makefile}        # Whenever the Makefile changes, all .o's get built.
  94.     {PPCC} {PPCC_Options} {default}.c -o {Targ}
  95.     
  96. .c.68k.o    ƒ    .c {Makefile}        # Whenever the Makefile changes, all .o's get built.
  97.     {C} {C_Options} {default}.c -o {Targ}
  98.  
  99.